package jfuzzyprincepless.algorithm.structure;

import java.util.List;

import jfuzzyprincepless.agents.INegotiatingAgent;
import jfuzzyprincepless.negotiation.services.IAgentsListService;
import jfuzzyprincepless.negotiation.services.impl.AgentsListService;

public class DefaultNegConstruction
	implements INegotiationConstruction
{
	protected IAgentsListService agList;

	public DefaultNegConstruction(IAgentsListService agList) {
		this.agList = agList;
	}

	public DefaultNegConstruction(List<INegotiatingAgent> agentsList) {
		this(new AgentsListService(agentsList));
	}

	/**
	 * is not able to modify list
	 */
	public DefaultNegConstruction() {
		this(IAgentsListService.EMPTY);
	}

	@Override
	public List<INegotiatingAgent> getAgentsList() {
		return agList.getAgentsList();
	}
}
